package com.hooper.hosp.client;

import com.hooper.hosp.vo.hosp.ScheduleOrderVo;
import com.hooper.hosp.vo.order.SignInfoVo;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2022/10/09/20:57
 */
@FeignClient("service-hosp")
@Component
public interface HospClient {

    /**
     * 通过排班id获取排班的各种信息,包含医院,部门等
     *
     * @param scheduleId 排班号
     * @return 返回订单信息
     */
    @GetMapping("/api/hosp/front/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * 获取医院的签名密钥以及开放的api url
     * @param hoscode 医院号
     * @return 返回签名和api url
     */
    @GetMapping("/admin/hosp/setting/inner/getSignInfoVo/{hoscode}")
    SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);
}
